package com.imooc.service;

import com.imooc.pojo.DbStu;

import java.util.List;

public interface StuService {
    public void saveStu(DbStu stu);

    public DbStu queryById(String id);

    /**
     * 根据条件查询结果集
     * @param name
     * @param sex
     * @return
     */
    public List<DbStu> queryByCondition(String name, Integer sex);

    public void updateStu(DbStu stu);

    public void deleteStu(DbStu stu);

    public void testTrans();

    public DbStu queryByIdCustom(String id) throws InterruptedException;
}
